import http from '@/utils/http';

const OrderService = {
    /**
     * 销售品信息查询
     * @param {*} params
     * @returns
     * @param {查询条件} condition
     */
    async qryOrderItem(condition) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderItem`,
            data: condition,
            method: 'POST'
        });
        return res;
    },

    /**
     * 新建订单保存
     * @param {*} postData
     * @returns
     */
    async createProject(postData) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/createProject`,
            // url: `/crm_order/accept/createProject`,
            data: postData,
            method: 'POST'
        });
        return res;
    },
    /**
     * @param {*} params
     * @returns
     * 获取查询列表数据
     * @param {查询条件} param
     */
    async getQryCustList(params) {
        // 
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/qryCust`,
            // url:`http://192.168.1.97:8083/order-accept/qryCust`,
            data: params,
            method: 'POST'
        });
        return res;
    },

    /**
     * 添加联系人
     * @param {*} params
     * @returns
     * @param {查询条件} params
     */
    async saveInterFaceCust(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/saveInterFaceCust`,
            // url:`http://192.168.1.97:8083/order-accept/saveInterFaceCust`,
            data: params,
            method: 'POST'
        });
        return res;
    },

    /**
     * 用户查询，客户经理、项目经理、业务经理等
     * @param {} condition
     * @returns
     */
    async qryStaffList(condition) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryStaffList`,
            data: condition,
            method: 'GET'
        });
        return res;
    },
    /**
     * @param {*} params
     * @returns
     * 在途订单
     * @param {查询条件} params
     */
    async getCarryOrderList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryCustOnLineList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * @param {*} params
     * @returns
     * 销售品实例
     * @param {查询条件} params
     */
    async qryOfferInstList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOfferInstList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * @param {*} params
     * @returns
     * 受理
     * @param {查询条件} param
    */
    async saveOrderList(param) {
        
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/createProdOffer`,
            data: param,
            method: 'POST'
        });
        return res;
    },

    /**
     * @param {*} params
     * @returns
     * 非正常变更保存
     * @param {查询条件} param
    */
    async saveAbnormalChange(param) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/saveAbnormalChangeOrder`,
            data: param,
            method: 'POST'
        });
        return res;
    },

    /**
         * @param {*} params
         * @returns
         * 正常变更保存
         * @param {查询条件} param
        */
    async saveNormalChange(param) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/saveNormalChangeOrder`,
            data: param,
            method: 'POST'
        });
        return res;
    },

    /**
      * @param {*} params
      * @returns
      * option初始值
      * @param {查询条件} param
     */
    async getAttrValueList(param) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryAttrValueList`,
            data: param,
            method: 'GET'
        });
        return res;
    },
    /**
    * @param {*} params
    * @returns
    * 城市列表
    * @param {查询条件} param
   */
    async getCityList(param) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryCityList`,
            // url: 'http://192.168.1.71:8085/order/query/qryCityList',
            data: param,
            method: 'GET'
        });
        return res;
    },
    /**
* @param {*} params
* @returns
* 收款单位
* @param {查询条件} param
*/
    async getAccount(param) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryAccountUnit`,
            // url: 'http://192.168.1.71:8085/order/query/qryAccountUnit',
            data: param,
            method: 'GET'
        });
        return res;
    },
    /**
* @param {*} params
* @returns
* 弹窗通用
* @param {查询条件} param
*/
    async getCustNum(param) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/executeSql`,
            data: param,
            method: 'POST'
        });
        return res;
    },
    /**
    * @param {*} params
    * @returns
    * 查询通用
    * @param {查询条件} param
    */
    async executeSql(param) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/executeSql`,
            data: param,
            method: 'POST'
        });
        return res;
    },
    /**
  * @param {*} params
  * @returns
  * 服务列表
  * @param {查询条件} param
  */
    async getModifyServe(param) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryModifyServe`,
            data: param,
            method: 'POST'
        });
        return res;
    },
    /**
  * @param {*} params
  * @returns
  * 销售品列表Top10
  * @param {查询条件} param
  */
    async getTop10(param) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOfferTop`,
            data: param,
            method: 'POST'
        });
        return res;
    },
    /**
     * 查看是否是试点省
     */
    async isPilotProvince(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/getTestProvCount`,
            // url: `http://192.168.1.97:8083/order-accept/getTestProvCount`,
            data: params || {},
            method: 'GET'
        });
        return res;
    },

    /**
     * 查看省客户
     * @returns
     */
    async provinceCustList(params) {
        
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/shengCustList`,
            // url: `http://192.168.1.97:8083/order-accept/shengCustList`,
            data: params,
            method: 'POST'
        });
        return res;
    },

    /**
     * 插入省客户关系
     * @param {*} params
     * @returns
     */
    async insertProvinceCustRel(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/shengCustRel`,
            // url: `http://192.168.1.97:8083/order-accept/shengCustRel`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 订购先查后创获取省市
     * @param {*} params
     * @returns
     */
    async getRegionCodeList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/getRegionCodeList`,
            // url: `http://192.168.1.97:8083/order-accept/getRegionCodeList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 订购省市提交
     * @param {*} params
     * @returns
     */
    async syncProvinceCust(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/syncProvinceCust`,
            // url: `http://192.168.1.97:8083/order-accept/syncProvinceCust`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * @param {*} params
     * @returns
     * 暂存单页面-----获取暂存单列表信息
     * @param {查询条件} param
     */
    async getQryTempWorkOrderList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryTempWorkOrderList`,
            data: params,
            method: 'POST'
        })
        return res;
    },
    /**
     * @param {*} params
     * @returns
     * 暂存单页面-----获取暂存单列表详情----信息列表
     * @param {查询条件} param
     */
    async getQryOrderItem(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderItem`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * @param {*} params
     * @returns
     * 暂存单页面-----项目重新保存
     * @param {查询条件} param
     */
    async createProject(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/createProject`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 销售品列表
     * @param {*} params
     * @returns
     */
    async qryProdOfferList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryProdOfferList`,
            data: params,
            method: 'GET'
        });
        return res;
    },
    /**
     * 客户定位收藏功能
     * @param {*} params
     * @returns
     */
    async collectCust(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/collectCust`,
            data: params,
            method: 'POST'
        });
        return res;
    },

    /**
     * 调用规则平台规则埋点校验
     * @param {*} params
     * @returns
     */
    async rulePlatfromCheck(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/rulePlatformCheck`,
            // url: `http://localhost:8085/order-query/rulePlatformCheck`,
            data: params,
            method: 'POST'
        });
        //根据王龙要求增加前缀2021年7月26日10:02
        let ruleCode = res.code;
        let ruleMsg = res.msg
        //根据王龙要求增加编号2021年8月13日16:02
        let msgRtn = "";
        if(ruleMsg.indexOf("||") != -1) {
            let msgArr = ruleMsg.split("||");
            console.log(msgArr);
            for(let j = 1;j <= msgArr.length; j++) {
                let item = msgArr[j-1];
                msgRtn+=j+'.'+item+" ";
            }
        }else{
            msgRtn = ruleMsg;
        }
        
        if (ruleCode == 2) {
            res.msg = "业务规则校验不通过：" + msgRtn;
        } else {
            res.msg = "业务规则校验提醒：" + msgRtn;
        }
        console.log(msgRtn);
        return res;
    },

    /**
     * 批量修改需求单、订单保存
     * @param {*} params
     * @returns
     */
     async batchEditOrderSave(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/batchEditOrderSave`,
            data: params,
            method: 'POST'
        });
        return res;
    },

    /**
     * 暂存单删除
     * @param {*} params
     * @returns
     */
    async delOrder(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/delOrder`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 暂存单重新保存项目信息查询接口
     * @param {*} params
     * @returns
     */
    async qryModProjectInfo(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryModProjectInfo`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    qryProdOfferPage(params) {
        
        // let res = await http({
        //     url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryProdOfferList`,
        //     data: params,
        //     method: 'GET'
        // });
        // let res={
        //     "code": 200,
        //     "msg": "OK",
        //     "count": 0,
        //     "meta": {
        //         "resultCode": "0",
        //         "pageId":"10578",
        //         "resultMsg": "查询成功"
        //     }
        // },
        // return res;
    },

    /**
     * 查询订单销售品附件信息
     * @param {*} params
     * @returns
     */
    async qryFilesItem(condition) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/handelSelectFile`,
            //url: `http://localhost:8083/order/process/handelSelectFile`,
            data: condition,
            method: 'POST'
        });
        return res;
    },

    /**
     * 下载订单销售品附件信息
     * @param {*} params
     * @returns
     */
    async handelDownFile(condition) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/handelDownFile`,
            //url: `http://localhost:8083/order/process/handelDownFile`,
            data: condition,
            headers: { 'Content-Type': 'application/json' },
            responseType: 'blob',
            method: 'POST'
        });
        return res;
    },

    /**
     * 删除订单销售品附件信息
     * @param {*} params
     * @returns
     */
    async delFile(condition) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/handelDelFile`,
            //url: `http://localhost:8083/order/process/handelDelFile`,
            data: condition,
            method: 'POST'
        });
        return res;
    },
    /**
     * 上传订单销售品附件信息
     * @param {*} params
     * @returns
     */
    async handelUploadFile(condition) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/handelUploadFile`,
            // url: `http://localhost:8084/order-process/handelUploadFile`,
            data: condition,
            headers: { 'Content-Type': 'multipart/form-data' },
            method: 'POST'
        });
        return res;
    },
    /**
     * 订单复制
     * @param {*} params
     * @returns
     */
    async doCopyOrder(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/createOrderCopy`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 申请退单
     * @param {*} params
     * @returns
     */
    async applyBackOrder(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/applyBackOrder`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
   * 变更日志
   * @param {*} params
   * @returns
   */
    async SaveModifyList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderItemAttrModifyList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 商机任务单待办-列表
     * @param {*} params
     * @returns
     */
    async ReqTaskList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryBusinessList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     *商机任务单待办-退回
     * @param {*} params
     * @returns
     */
    async returnBusinessTask(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/orderToOppSendService`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
 * 订购销售品获取产品名（PPM事件js取名通用）
 * @param {*} params
 * @returns
 */
    async getByProdId(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_PPM_QUERY}/pageTempVueMapping/getByP4`,
            // url: 'http://192.168.1.205:8081/crm-ppm/pageTempVueMapping/getByP4',
            headers: { 'Content-Type': 'application/json' },
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 批量导入-中台校验
     * @param {*} params
     * @returns
     */
    async checkImportFile(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/batchImportUpload`,
            data: params,
            headers: { 'Content-Type': 'multipart/form-data' },
            method: 'POST'
        });
        return res;
    },
    /**
     * 批量导入-最终上传
     * @param {*} params
     * @returns
     */
    async saveImportFile(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_PROCESS}/batchImportSave`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
    * 合同列表
    * @param {*} params
    * @returns
    */
    async qryContractList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryContractList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 项目信息列表查询
     * @param {*} params
     * @returns
     */
    async qryProjectList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryProjectList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
      * 产品详情初始化回显数据
      * @param {*} params
      * @returns
      */
    async qryPageOfferDetail(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryCustomerOrderDetailConvertUnderLine`,
            data: params,
            headers: { 'Content-Type': 'application/json' },
            method: 'POST'
        });
        return res;
    },
    /**
     * 查询客户下的所有账户  houbin add
     * @param {*} params
     * @returns
     */
    async qryAccList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/executesql`,
            data: params,
            headers: { 'Content-Type': 'application/json' },
            method: 'POST'
        });
        return res;
    },


    /**
    * 查询发展人list
    * @param {*} params
    * @returns
    */
    async devpersonList(params = {}) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/queryDevelopPersonInfo`,
            data: params,
            headers: { 'Content-Type': 'application/json' },
            method: 'POST'
        });
        return res;
    },

    /**
    * 查询客查询发展人过滤条件（渠道名称和经营主体名称list）
    * @param {*} params
    * @returns
    */
    async devpersonFilterChannel(params = {}) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/queryDevelopInfo`,
            data: params,
            headers: { 'Content-Type': 'application/json' },
            method: 'POST'
        });
        return res;
    },

    /**
 * 查询客查询发展人过滤条件（省份和本地网list）
 * @param {*} params
 * @returns
 */
    async devpersonFilterProvince(params = {}) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/executeSql`,
            data: params,
            headers: { 'Content-Type': 'application/json' },
            method: 'POST'
        });
        return res;
    },

    /**
     * 查询客查询发展人过滤条件（渠道名称和经营主体名称list）
     * @param {*} params
     * @returns
     */
    async getGroupCustomer(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/executeSql`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 电路开通进度接口（渠道名称和经营主体名称list）
     * @param {*} params
     * @returns
     */
    async qryDianluOpenProgress(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryDianluOpenProgress`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 正常变更查原单信息
     * @param {*} params
     * @returns
     */
    async getOldAttrForModifyPage(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/getOldAttrForModifyPage`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 非正常变更变更查原单信息
     * @param {*} params
     * @returns
     */
    async getOldOrdAttrForModifyPage(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/getOldOrdAttrForModifyPage`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 查询工作日
     * @param {*} params
     * @returns
     */
    async qryWorkDate(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryWorkDate`,
            data: params,
            method: 'POST'
        });
        return res;
    },

    /**
     * 重新核实资费调中台服务
     * @param {*} params
     * @returns
     * @param {查询条件} params
     */
    async reTariffOrder(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/reTariffOrder`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 重新核实资费调中台服务
     * @param {*} params
     * @returns
     * @param {查询条件} params
    */
    async reTariffInterface(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/reTariffInterface`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 正常变更校验是否有老系统的单子
     * custSoNUmber 入参
     * @param {*} param
     * @returns
    */
    async queryOldInterfaceBill(param) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/queryOldInterfaceBill`,
            data: param,
            method: 'POST'
        });
        return res;
    },
    /**
     * 主页我的订单
    */
    async qryMyOrderCount(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryMyOrderCount`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 查询省code
    */
    async getRegionCodeList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/getRegionCodeList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 查询省客户是否必填
    */
    async getTestProvCount(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/getTestProvCount`,
            params: params,
            method: 'GET'
        });
        return res;
    },
    /**
     * 流水日志列表
     */
    async qryOrderItemModifyList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderItemModifyList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 流水日志-查看属性详情
     */
    async qryOrderItemAttrModifyList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOrderItemAttrModifyList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
 * 受理页收藏
 */
    async addOrderTemplate(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/orderTemplate/add`,
            data: params,
            method: 'POST'
        });
        return res;
    },

    async qryAttrRuleSwitch(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryAttrRuleSwitch`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 受理页面收藏列表
     */
    async orderTemplateList(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/orderTemplate/qryListByOwner`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 受理页面收藏模板的详情接口
     */
    async orderTemplateDetail(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/orderTemplate/getInfo?模板id=${params}`,
            method: 'GET'
        });
        return res;
    },
    /**
       * 详情产品实例回显
       */
    async qryPageOfferInstDetail(condition) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryOfferInstDetailConvertUnderLine`,
            data: condition,
            method: "POST",
        });
        return res;
    },
    /**
     * 收藏更新
     */
    async orderTemplateUpdate(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/orderTemplate/edit`,
            data: params,
            method: 'POST'
        });
        return res;
    },

    /**
         * 获取PPM配置数据接口
         * "productId": "80007009","serviceOfferId": "4040100098","modType": "50200002","optionId": "310"
         * 新装时的后三个参数是这样的,其它业务会有变化
         * @param {}
         * @returns
         */
    async qryPageTempAttr(condition) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_PPM_QUERY}/ppm-query-server/qryPageTempAttr`,
            data: condition,
            method: "POST",
        });
        return res;
    },
    /**
     * 产品实例库信息-受理运营商下拉选项
     */
    async qryOrderSourceId(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/executeSql`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 产品实例库信息-销售品名称下拉选项
     */
    async qryProdOfferId(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/executeSql`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 产品实例库信息-通达省下拉选项
     */
    async qryLocationId(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/executeSql`,
            data: params,
            method: 'POST'
        });
        return res;
    }, 
    /**
     * 产品实例库信息-查询列表
     */
    async qryProdOfferInstNew(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/queryProdOfferInstNew`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 产品实例库信息-输出EXCEL
     */
    async exportEXCELInstList(params) {
        let res = await http({
            responseType: 'blob',
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/exportProdOfferInstList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 营销项目信息-查询列表
     */
     async getMarProInfo(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/getMarProInfo`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 营销子项目信息-查询列表
     */
     async getMarSubProInfo(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/getMarSubProInfo`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 5G 校验 业务发起地 
     */
    async checkAccountByorgId(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/checkAccountByorgId`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 产品实例库信息-查看在途订单
     */
    async intransitQueryItems(params) {
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/queryItems`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 查看进度报告
     * @param {*} params 
     * @returns 
     */
    async qryTestReportList(params){
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_QUERY}/qryTestReportList`,
            data: params,
            method: 'POST'
        });
        return res;
    },
    /**
     * 延期起租
     * @param {*} params 
     * @returns 
     */
    async orderDelayRent(params){
        let res = await http({
            url: `${process.env.VUE_APP_CTX_ORDER_ACCEPT}/orderDelayRent`,
            data: params,
            method: 'POST'
        });
        return res;
    }
}
export default OrderService
